package classwork;

import classwork_domain.Calculator;

public class Demo2 {
    public static void main(String[] args) {
        // 创建实例对象
        Calculator calculator = new Calculator();
        // 调用成员
        // 将计算机属性赋值
        calculator.brand = "得力";
        calculator.Size = 370 * 720;

        // 调用方法
        double add = calculator.add(3.6,4.8);
        System.out.println(add);

        double sub = calculator.sub(5.2,2.6);
        System.out.println(sub);

        calculator.shou();
    }
}
